@extends('layouts.home')

@section('title')
    <title>{{Config::get('web.web_title')}} - {{ Config::get('web.seo_title') }}</title>
    <meta name="keywords" content="{{ Config::get('web.keywords') }}" />
    <meta name="description" content="{{ Config::get('web.description') }}" />
@endsection

@section('content')

    <div class="banner">
        <section class="box">
            <ul class="texts">
                <p>打了死结的青春，捆死一颗苍白绝望的灵魂。</p>
                <p>为自己掘一个坟墓来葬心，红尘一梦，不再追寻。</p>
                <p>加了锁的青春，不会再因谁而推开心门。</p>
            </ul>
            <div class="avatar"><a href="https://git.oschina.net/lisgroup" target="_blank"><span>lisgroup</span></a> </div>
        </section>
    </div>
    <div class="template">
        <div class="box">
            <h3>
                <p><span>博文</span>推荐 Recommend</p>
            </h3>
            <ul>
                @foreach($recommend as $r)
                <li><a href="{{ url('/article/' . $r->art_id) }}"  target="_blank"><img src="{{ url('/' . $r->art_thumb) }}"></a><span>{{ $r->art_title }}</span></li>
                @endforeach
            </ul>
        </div>
    </div>
    <article>
        <h2 class="title_tj">
            <p>文章<span>推荐</span></p>
        </h2>
        <div class="bloglist left">
            @foreach($list as $l)
            <h3>{{ $l->art_title }}</h3>
            <figure><img src="{{ url('/'.$l->art_thumb) }}"></figure>
            <ul>
                <p>{{ $l->art_description }}</p>
                <a title="{{ $l->art_title }}" href="{{ url('/article/'.$l->art_id) }}" target="_blank" class="readmore">阅读全文>></a>
            </ul>
            <p class="dateview"><span>{{ date('Y-m-d', $l->art_time) }}</span><span>作者：{{ $l->art_editor }}</span></p>
            @endforeach

            <div class="page">
                {{ $list->links() }}
            </div>

        </div>

        @parent

    </article>

@endsection
